package com.suse.generator.mybatis.plus;

public class GeneratorTest {

    private static final String url = "jdbc:mysql://localhost:3306/community?nullCatalogMeansCurrent=true&serverTimezone=Asia/Shanghai";
    private static final String driver = "com.mysql.cj.jdbc.Driver";
    private static final String username = "root";
    private static final String password = "gyb176714";
    private static final String author = "辜玉彬";
    private static final String project = "D:\\Project\\Spring Boot Project\\community\\parent\\service\\service-community";
    private static final String parent = "com.suse.service.community";
    private static final String tablePrefix = "";
    private static final String tableLike = "";
    private static final String table = "";
    private static final String[] tables = new String[]{"comment","discuss_post","login_ticket","message","user"};

    public static void main(String[] args) {
        GeneratorUtil.create()
                .dataSourceConfig((builder) -> builder.url(url).driver(driver).username(username).password(password))
                .globalConfig((builder) -> builder.project(project).author(author))
                .packageConfig((builder) -> builder.parent(parent))
                .strategyConfig((builder) -> builder.tablePrefix(tablePrefix).include(tables))
                .generate();
    }

}